package org.dioib.practice.zero;

public class CustomEnum {
    public static final CustomEnum SPRING = new CustomEnum("春天", "鸟语花香");
    public static final CustomEnum SUMMER = new CustomEnum("夏天", "烈日炎炎");
    public static final CustomEnum AUTUMN = new CustomEnum("秋天", "秋高气爽");
    public static final CustomEnum WINTER = new CustomEnum("冬天", "冰天雪地");

    private String name;
    private String desc;

    private CustomEnum(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }


    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "CustomEnum{" +
                "name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
